#include <iostream>
using namespace std;
int main()
{
int n,i,ans=0;
cin>>n;
i=1;
do
{
if(n%i==0)ans++;
i++;	
}while(i<=n);
cout <<ans<<endl;
return 0;	
}
//输入10 输出4
